package com.odin.core.dao;

import com.odin.core.entity.Resource;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ResourceDAO {

    int deleteByPrimaryKey(String id);

    void insert(Resource record);

    void insertSelective(Resource record);


    Resource selectByPrimaryKey(String id);


    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);

    List<Resource> findByRoleId(String roleId);
}